package com.ksyun.start.camp.service.impl;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.ksyun.start.camp.model.ApiResponse;
import com.ksyun.start.camp.model.InstanceFromTime;
import com.ksyun.start.camp.model.ResponseFromTime;

import com.ksyun.start.camp.model.ServiceInstance;
import com.ksyun.start.camp.model.vo.ServiceInstanceVO;
import com.ksyun.start.camp.service.ClientService;
import com.ksyun.start.camp.service.TimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 客户端服务实现
 */
@Component
public class ClientServiceImpl implements ClientService {

    @Autowired
    private TimeService timeService;

    // 获取客户端信息的方法
    public ApiResponse<ResponseFromTime> getInfo(String style) {
        return timeService.getDateTime(style);
    }

}

